<?php
require_once 'includes/haut.php';
acces($niveau,0);

require_once 'includes/donneesFormulaires.php'; 

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>
			Mes r&eacute;servations
		</title>
		<?php include('includes/headLinks.php');?>
		<script type="text/javascript" src="js/jquery.tablesorter.js"></script>
		<script type="text/javascript" src="js/triTable.js"></script>
	</head>
	<body>

		<div id="entete">
			<?php include('includes/entete.php'); ?>
		</div>
	
		<div id="navigation">
			<?php include('includes/navigation.php'); ?>
		</div>

		<div id="principal">
			<h2>Mes r&eacute;servations</h2>
	
			<?php 
				$titres=array('Pr&eacute;nom', 'Du', 'Au', 'Activit&eacute;', 'Mat&eacute;riel', 'Niveau', 'Taille', 'Prix');
				?>
								
								
				<table class="tabListe">
					<thead>
					<tr><?php //ecriture des titres de colonnes
						foreach($titres as $x){
							echo'<th>'.$x.'</th>';
						}?>
					</tr>
					</thead>
					<tbody>
			<?php 
				$req = reservation::getReservationsClient($client->getId());
				$total = afficherTabResa($req,$tabType, $tabNiveau,false);
			?>
			</tbody>
			</table>
			<div class="total">
				Total : <?php echo $total;?>&euro;
			</div>
		</div>
		<div id="publicite">
			<?php include('includes/publicite.php'); ?>
		</div>
	</body>
</html>